package com.twu.biblioteca;

/**
 * Created by jrocha on 9/30/14.
 */
public abstract class ItemLibrary {

    public ItemLibrary(int id, String name, int year){
        this.id = id;
        this.name = name;
        this.year = year;

        this.checkedOut = false;
    }

    public String getName() {
        return this.name;
    }

    public int getId() {
        return this.id;
    }

    public int getYear() {
        return this.year;
    }

    public boolean isCheckedOut() {
        return checkedOut;
    }

    public void setCheckedOut(boolean checkedOut) {
        this.checkedOut = checkedOut;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public abstract String toString();

    private int id;
    private String name;
    private int year;
    private boolean checkedOut;
    private User user;
    
}
